package org.fast.develop.logicflow.runtime.context;


/**
 * @author 莫寅
 * @createTime 2022-11-24 19:01
 * @desc：
 */
public class LogicFlowContextManager {

    private static ThreadLocal<LogicFlowContext> logicFlowContextThreadLocal = new ThreadLocal<>();

    public LogicFlowContextManager() {
        new LogicFlowContextHolder(this);
    }

    public LogicFlowContext get() {
        return logicFlowContextThreadLocal.get();
    }

    public void set(LogicFlowContext value) {
        logicFlowContextThreadLocal.set(value);
    }

    public void remove() {
        logicFlowContextThreadLocal.remove();
    }

}
